package site.zhangzhuo.learn_springboot.listener;

import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component
public class InternalMessageNotificationListener {
    @EventListener
    public void handleUserRegistrationEvent(UserRegistrationEvent event) {
        System.out.println("发送站内信通知，恭喜用户 " + event.getUsername() + " 注册成功！");
    }
}
